package x.ovo.wechat.bot.plugin;

import x.ovo.wechat.bot.core.http.request.ApiRequest;

import java.util.concurrent.TimeUnit;
import java.util.function.Function;

public class KfcRequest extends ApiRequest<String> {
    @Override
    public ApiRequest<String> build() {
        this.getHeaders().clear();
        return this.setUrl("https://kfc-crazy-thursday.vercel.app/api/index")
                .setTimeout((int) TimeUnit.SECONDS.toMillis(10));
    }

    @Override
    protected Function<String, String> stringHandler() {
        return s -> s;
    }
}
